Part 1 90th percentile

1.1 ALL station 90th compare

## Warning: Removed 7 rows containing missing values or values outside the scale range
## (`geom_line()`).

## Warning: Removed 4 rows containing missing values or values outside the scale range
## (`geom_line()`).

1.2 different YVR data

Part 2 scatter plot

## [1] "Kamloops"      "Prince_George" "YVR"           "Kelowna"      
## [5] "YVR_era5"      "Abbotsford"    "Penticton"     "FortNelson"

2.1 TOP 20 scatter plot between 2 stations

Display the color point in bar

2.2 TOP 20-35 scatter plot between 2 stations

Display the color point in bar

2.3 correlation between scatter plot of YVR_era5 vs YVR temp station.

Fit a Linear Model Generate 95% Prediction Intervals as reference lines

Part 3: line segment plot

3.1 line segment for 7 temp station, 3 day HW

YVR: 1937-2024

Prince_George: 1940-2024

FortNelson: 1937-2024

Kelowna: 1899-2024

Abbotsford: 1935-2024

Kamloops: 1939-2024

Penticton: 1941-2024

line segment 3 day

## [1] "YVR"           "Kamloops"      "Prince_George" "YVR_era5"     
## [5] "Kelowna"       "Abbotsford"    "Penticton"     "FortNelson"
##        begin        end starttemp endtemp year month
## 1 1937-03-03 1937-03-05      14.4    14.4 1937     3
## 2 1937-10-27 1937-10-29      15.6    17.2 1937    10
## 3 1937-11-20 1937-11-22      11.7    12.8 1937    11
## 4 1937-12-11 1937-12-14      11.1    12.8 1937    12
## 5 1938-05-19 1938-05-24      20.6    23.3 1938     5
## 6 1939-03-21 1939-03-23      17.8    14.4 1939     3
## [1] " head df_filtered_plot"
## [1] "df_filtered_plot"

3.2 line segment for 7 temp station, 5 day HW

YVR: 1937-2024

Prince_George: 1940-2024

FortNelson: 1937-2024

Kelowna: 1899-2024

Abbotsford: 1935-2024

Kamloops: 1939-2024

Penticton: 1941-2024

line segment 5 day

##        begin        end starttemp endtemp year month
## 1 1937-03-03 1937-03-05      14.4    14.4 1937     3
## 2 1937-10-27 1937-10-29      15.6    17.2 1937    10
## 3 1937-11-20 1937-11-22      11.7    12.8 1937    11
## 4 1937-12-11 1937-12-14      11.1    12.8 1937    12
## 5 1938-05-19 1938-05-24      20.6    23.3 1938     5
## 6 1939-03-21 1939-03-23      17.8    14.4 1939     3
## [1] " head df_filtered_plot"
## [1] "df_filtered_plot"

3.3 line segment 2 yvr compare, for HW over 3 days

##        begin        end starttemp endtemp year month
## 1 1937-03-03 1937-03-05      14.4    14.4 1937     3
## 2 1937-10-27 1937-10-29      15.6    17.2 1937    10
## 3 1937-11-20 1937-11-22      11.7    12.8 1937    11
## 4 1937-12-11 1937-12-14      11.1    12.8 1937    12
## 5 1938-05-19 1938-05-24      20.6    23.3 1938     5
## 6 1939-03-21 1939-03-23      17.8    14.4 1939     3
## [1] " head df_filtered_plot"
## [1] "df_filtered_plot"

Part 4 Monthly max EHF compare

4.1 correlation + time serires

MAY

##               Abbotsford       YVR    Kelowna Prince_George FortNelson
## Abbotsford     1.0000000 0.7775744 0.48820190     0.5584959 0.18285862
## YVR            0.7775744 1.0000000 0.61218406     0.5072884 0.12689138
## Kelowna        0.4882019 0.6121841 1.00000000     0.4980561 0.03425861
## Prince_George  0.5584959 0.5072884 0.49805606     1.0000000 0.58662411
## FortNelson     0.1828586 0.1268914 0.03425861     0.5866241 1.00000000

JUN

##               Abbotsford       YVR   Kelowna Prince_George FortNelson
## Abbotsford     1.0000000 0.9123654 0.8295619     0.8102268  0.7061124
## YVR            0.9123654 1.0000000 0.8306452     0.8534502  0.6556428
## Kelowna        0.8295619 0.8306452 1.0000000     0.8874449  0.6826995
## Prince_George  0.8102268 0.8534502 0.8874449     1.0000000  0.7130364
## FortNelson     0.7061124 0.6556428 0.6826995     0.7130364  1.0000000

JULY

##               Abbotsford       YVR   Kelowna Prince_George FortNelson
## Abbotsford     1.0000000 0.9314524 0.5647499     0.6824746  0.5140600
## YVR            0.9314524 1.0000000 0.5804903     0.6619633  0.4661561
## Kelowna        0.5647499 0.5804903 1.0000000     0.5449784  0.5143751
## Prince_George  0.6824746 0.6619633 0.5449784     1.0000000  0.5911305
## FortNelson     0.5140600 0.4661561 0.5143751     0.5911305  1.0000000

AUG

##               Abbotsford       YVR   Kelowna Prince_George FortNelson
## Abbotsford     1.0000000 0.8086975 0.3954120     0.5346795  0.3370692
## YVR            0.8086975 1.0000000 0.4201874     0.5616629  0.2117807
## Kelowna        0.3954120 0.4201874 1.0000000     0.4520000  0.3974085
## Prince_George  0.5346795 0.5616629 0.4520000     1.0000000  0.3014494
## FortNelson     0.3370692 0.2117807 0.3974085     0.3014494  1.0000000

4.2 scatter plot of monthly EHF among stations

## $Abbotsford_vs_YVR

## 
## $Abbotsford_vs_Kelowna

## 
## $Abbotsford_vs_Prince_George

## 
## $Abbotsford_vs_FortNelson

## 
## $YVR_vs_Kelowna

## 
## $YVR_vs_Prince_George

## 
## $YVR_vs_FortNelson

## 
## $Kelowna_vs_Prince_George

## 
## $Kelowna_vs_FortNelson

## 
## $Prince_George_vs_FortNelson